/**
 * Copyright 2010-2025 The mTASK Project Authors. All Rights Reserved.
 * Licensed under the MIT License (the "License").  You may not use
 * this file except in compliance with the License.  You can obtain a copy
 * in the file LICENSE in the source distribution or at
 * https://www.gitee.com/lort/mTask/LICENSE.md
 * Author: luyunyi @luyunyi2019@outlook.com
 */

#ifndef __MTASKTYPE_H__
#define __MTASKTYPE_H__

#include <mTaskConfig.h>

#ifdef __cplusplus
extern "C"
{
#endif


typedef	uint64_t	weight_t;

#ifndef NULL
#define NULL ((void*)0)
#endif

typedef enum
{
	mTASK_FALSE = 0,
	mTASK_TRUE = 1,
	mTASK_SUCCESS = 0,
	mTASK_FAILED ,
	mTASK_ERROR ,
	mTASK_READY	,
	mTASK_RUNNING,
	mTASK_PAUSE,
	mTASK_STOP,
	mTASK_BUSY,
	mTASK_IDLE,
}mTASK_STATE;

#define ELOOP_ASSERT(x)	\
do{\
	if(x)\
	{\
		while(1);\
	}\
}while(0);


#ifdef __cplusplus
}
#endif


#endif /* JF_OS_JF_TYPES_H_ */
